#个税计算器
n=eval(input())
x=0
if n<0:
    print("error")
else:
    if(0<=n<=5000):
        x=0
    elif(0<n-5000<=3000):
        x=(n-5000)*0.03
    elif(3000<=n-5000<=12000):
        x=(n-5000)*0.1-210
    elif(12000<=n-5000<=25000):
        x=(n-5000)*0.2-1410
    elif(25000<=n-5000<=35000):
        x=(n-5000)*0.25-2660
    elif(35000<=n-5000<=55000):
        x=(n-5000)*0.30-4410
    elif(55000<=n-5000<=80000):
        x=(n-5000)*0.35-7160
    else:
        x=(n-5000)*0.45-15160
    y=n-x
    print('应缴税款'f'{x:.2f}''元，实发工资'f'{y:.2f}''元。')
